package icu.zlz.emqx.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import icu.zlz.common.core.annotation.Excel;
import icu.zlz.common.core.web.domain.BaseEntity;

import javax.validation.constraints.Pattern;

/**
 * 主题对象 iot_topic
 *
 * @author zangs
 * @since 2024-12-31
 */
@Getter
@Setter
public class IotTopic extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 自定义参数
     */
    private Long userId;

    /**
     * 主题id
     */
    private Long topicId;

    /**
     * 组ID
     */
    @Excel(name = "组ID")
    private Long groupId;
    /**
     * 主题名
     */
    @Excel(name = "主题名")
    private String topicName;

    /**
     * 状态 0正常 1停用
     */
    @Excel(name = "状态 0正常 1停用")
    private String status;

    /**
     * uid
     */
    private String uid;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("topicId", getTopicId())
                .append("groupId", getGroupId())
                .append("topicName", getTopicName())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .append("uid", getUid())
                .toString();
    }
}
